package com.ztf0337.mycurriculumdesign.entity;

import androidx.room.ColumnInfo;
import androidx.room.Entity;
import androidx.room.PrimaryKey;

@Entity(tableName = "parking_space_table")
public class ParkingSpace {
    @PrimaryKey(autoGenerate = true)
    private Long id;
    @ColumnInfo(name = "park_lot_id")
    private Long parkLotId;
    @ColumnInfo(name = "parking_space_number")
    private String parkingSpaceNumber;
    @ColumnInfo(name = "location")
    private String location;
    @ColumnInfo(name = "status")
    private Boolean status;
    @ColumnInfo(name = "type")
    private String type;
    @ColumnInfo(name = "price_per_hours")
    private Double pricePerHours;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getParkLotId() {
        return parkLotId;
    }

    public void setParkLotId(Long parkLotId) {
        this.parkLotId = parkLotId;
    }

    public java.lang.String getParkingSpaceNumber() {
        return parkingSpaceNumber;
    }

    public void setParkingSpaceNumber(java.lang.String parkingSpaceNumber) {
        this.parkingSpaceNumber = parkingSpaceNumber;
    }

    public java.lang.String getLocation() {
        return location;
    }

    public void setLocation(java.lang.String location) {
        this.location = location;
    }

    public Boolean getStatus() {
        return status;
    }

    public void setStatus(Boolean status) {
        this.status = status;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Double getPricePerHours() {
        return pricePerHours;
    }

    public void setPricePerHours(Double pricePerHours) {
        this.pricePerHours = pricePerHours;
    }

    public java.lang.String getParkingInfo() {
        return  "车位号：" + parkingSpaceNumber;
    }
}
